package com.siwei.mes.controller.experiment;

import com.siwei.mes.common.result.Json;
import com.siwei.mes.service.ExperimentItemorderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 试验台账与小票关系相关
 *
 * @author linzi
 * @since 2023-12-19 22:36:28
 */
@Api(value = "试验台账与小票关系")
@RestController
@RequestMapping("experimentItemorder")
public class ExperimentItemorderController {
    @Resource
    private ExperimentItemorderService experimentItemorderService;


    @ApiOperation(value = "根据试验台账id获取对应小票")
    @GetMapping("selectByExperimentId")
    public Json selectByExperimentId(@RequestParam("experimentId") Long experimentId) {
        return Json.succ().data(experimentItemorderService.selectByExperimentId(experimentId));
    }


}
